﻿using Microsoft.EntityFrameworkCore;
using SqlSugar;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Dilon.Core
{
    /// <summary>
    /// 通知公告表
    /// </summary>
    [SugarTable("sys_notice", TableDescription = "通知公告表")]
    public class SysNotice : DEntityBase
    {
        /// <summary>
        /// 标题
        /// </summary>
        [SugarColumn(ColumnDescription="标题", IsNullable = true)]
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [SugarColumn(ColumnDescription="内容", IsNullable = true)]
        public string Content { get; set; }

        /// <summary>
        /// 类型（字典 1通知 2公告）
        /// </summary>
        [SugarColumn(ColumnDescription="类型", IsNullable = true)]
        public int Type { get; set; }

        /// <summary>
        /// 发布人Id
        /// </summary>
        [SugarColumn(ColumnDescription="发布人Id", IsNullable = true)]
        public long PublicUserId { get; set; }

        /// <summary>
        /// 发布人姓名
        /// </summary>
        [SugarColumn(ColumnDescription="发布人姓名", IsNullable = true)]
        public string PublicUserName { get; set; }

        /// <summary>
        /// 发布机构Id
        /// </summary>
        [SugarColumn(ColumnDescription="发布机构Id", IsNullable = true)]
        public long PublicOrgId { get; set; }

        /// <summary>
        /// 发布机构名称
        /// </summary>
        [SugarColumn(ColumnDescription="发布机构名称", IsNullable = true)]
        public string PublicOrgName { get; set; }

        /// <summary>
        /// 发布时间
        /// </summary>
        [SugarColumn(ColumnDescription="发布时间", IsNullable = true)]
        public DateTimeOffset PublicTime { get; set; }

        /// <summary>
        /// 撤回时间
        /// </summary>
        [SugarColumn(ColumnDescription="撤回时间", IsNullable = true)]
        public DateTimeOffset CancelTime { get; set; }

        /// <summary>
        /// 状态（字典 0草稿 1发布 2撤回 3删除）
        /// </summary>
        [SugarColumn(ColumnDescription="状态")]
        public int Status { get; set; }
    }
}
